<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>标题</title>
</head>
<body>
	<h1>标题</h1>
	<hr />
	
</body>
<script type="text/javascript" src="./1.js"></script>
<script type="text/javascript">
	
	console.time('star');

	console.log( arr.length );
	
	function unique6(arr){
		var _hash = {};
		for(var i = 0; i < arr.length; i++ ){
			var cur = arr[i];
			if( _hash[ cur ] == cur ){
				arr[i] = arr[ arr.length - 1];
				arr.length--;
				i--;
				continue;
			}

			_hash[ cur ] = cur;
		}

	}
	unique6( arr );

	console.log( arr );
	console.log( arr.length );
	
	console.timeEnd('star');

</script>
</html>